<template>
	<view>
		<view class="house">
			<text>润华商厦/1单元/1001</text>
		</view>
		<view class="list">
			<view class="item">
				<view class="flex title">
					<view class="h1">
						<text>电表</text>
					</view>
					<view>
						<text>总用量：80</text>
					</view>
				</view>
				<view class="flex before h2">
					<text>
						<text>上次抄表数：</text>
						<text>40</text>
					</text>
					<text>
						<text>上次抄表时间：</text>
						<text>2019-02-03</text>
					</text>
				</view>
				<view class="flex now h2">
					<text >
						<text>本次抄表数：</text>
						<text>40</text>
					</text>
					<text>
						<text>本次抄表时间：</text>
						<text>2019-02-03</text>
					</text>
				</view>
				<view class="button">
					<button type="primary" plain="true" @click="bill">抄表</button>
				</view>
			</view>
			<view class="item">
				<view class="flex title">
					<view class="h1">
						<text>水表</text>
					</view>
					<view>
						<text>总用量：80</text>
					</view>
				</view>
				<view class="flex before h2">
					<text>
						<text>上次抄表数：</text>
						<text>40</text>
					</text>
					<text>
						<text>上次抄表时间：</text>
						<text>2019-02-03</text>
					</text>
				</view>
				<view class="button">
					<button type="primary" plain="true" @click="bill">抄表</button>
				</view>
			</view>
			<view class="item">
				<view class="flex title">
					<view class="h1">
						<text>气表</text>
					</view>
					<view>
						<text>总用量：80</text>
					</view>
				</view>
				<view class="flex before h2">
					<text>
						<text>上次抄表数：</text>
						<text>40</text>
					</text>
					<text>
						<text>上次抄表时间：</text>
						<text>2019-02-03</text>
					</text>
				</view>
				<view class="button">
					<button type="primary" plain="true" @click="bill">抄表</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			bill () {
				setTimeout(() => {
					dd.navigateTo({
						url: '../meterReading-bill/meterReading-bill'
					});
				},10);
			}
		}
	}
</script>

<style>
	page {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		background-color: #efeff4
	}
	view {
		font-size: 28rpx;
		line-height: inherit
	}
	.house {
		padding: 30rpx;
		background-color: #FFFFFF;
		text-align: center;
	}
	.list {
		margin: 30rpx;
	}
	.item {
		padding: 40rpx;
		background-color: #FFFFFF;
		position: relative;
		margin-bottom: 30rpx;
	}
	.title {
		border-bottom: 1px solid #efeff4;
		padding-bottom: 10rpx;
	}
	.flex {
		display: flex;
		justify-content: space-between;
	}
	.num {
		margin-right: 50px;
	}
	.before {
		padding-top: 10rpx;
	}
	.now {
		padding-top: 10rpx;
	}
	.button {
		padding-top: 20rpx;
		text-align: center;
	}
	.h2 {
		color: #999;
	}
</style>
